package com.edu.koTA07.XmlToBean;

import java.io.InputStream;

import com.edu.koTA07.XmlDataSet.BarangXmlDataSet;
import com.edu.koTA07.takingOrder.R;
import com.edu.koTA07.utils.BarangUtils;
import com.edu.koTA07.xmlreader.BarangXMLtoDataSet;
import android.content.Context;

public class BarangXmlSetToBean{	
    @SuppressWarnings("unused")
	private static final String TAG = null;
	BarangXmlDataSet barang = null;
	BarangUtils util;
    
    public BarangXmlSetToBean(Context context) {
    	super();
    	InputStream in = context.getResources().openRawResource(R.raw.barang);
    	BarangXMLtoDataSet barangXMLtoBean = new BarangXMLtoDataSet(in);
    	barang = barangXMLtoBean.getBarangList();
		util = new BarangUtils(context);
		util.onSaveDataFromXml(barang);
    }

}   
